import Vue from 'vue';
import iView from 'iview';
import router from './router';
import App from './app.vue';
import 'iview/dist/styles/iview.css';
import axios from './axios';
import VueAxios from 'vue-axios';
import store from './store/store';
// 引入echarts
import echarts from 'echarts';
// 引入样式
import 'vue-easytable/libs/themes-base/index.css';
// 导入 table 和 分页组件
import {VTable,VPagination} from 'vue-easytable';

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import SysHttpUtil from './httpRequestUtil';


// 注册到全局
Vue.component(VTable.name, VTable);
Vue.component(VPagination.name, VPagination);
Vue.prototype.$echarts = echarts;
Vue.use(VueAxios,axios);
Vue.use(router);
Vue.use(iView);
Vue.use(ElementUI);
Vue.use(SysHttpUtil);

new Vue({
    el: '#app',
    router: router,
    store: store,
    render: h => h(App)
});
